<template>
  <div class="stage1-service-container">
    <!-- Header -->
    <div class="header">
      <div class="container">
        <div class="header-content">
          <h1 class="main-title">《1V1定位护航服务》</h1>
        </div>
      </div>
    </div>
    <div class="container">
      <div class="tools-package">
        <div class="package-header">
          <div class="package-title">
            <i class="fas fa-search"></i> 服务内容
          </div>
        </div>

        <div class="package-content">
          <div class="tool-section">
            <h4><i class="fas fa-lightbulb"></i> 需求分析</h4>
            <p>根据测评结果，结合用户实际情况，精确分析真正需求，给出装企筛选意见，辅助决策</p>
          </div>

          <div class="tool-section">
            <h4><i class="fas fa-clipboard-check"></i> 基础知识扫盲</h4>
            <p>解答行业基础问题，了解各类装企的差异及优缺点，讲解装修前期的需要的准备工作及注意事项。</p>
          </div>
        </div>
      </div>
    </div>
    <div class="service-info">
      <div class="price-card">
        <span class="price-note">69元</span>
        <span class="price-divider">|</span>
        <span class="price-note">预约服务请咨询客服</span>
      </div>
    </div>
    <div class="footer">
      <el-button type="primary" size="large" class="backBtn" @click="backToHome">
        返回首页
      </el-button>
    </div>
  </div>
</template>

<script>
export default {
  name: 'Stage1ServiceView',
  methods: {
    backToHome() {
      this.$router.push('/')
    }
  }
}
</script>

<style scoped>
.stage1-service-container {
  min-height: 100vh;
  background: linear-gradient(135deg, #f0f9eb 0%, #e6f4e6 100%);
  color: var(--text-dark);
  line-height: 1.5;
  padding-bottom: 20px;
}

.backBtn {
  background-color: #2e7d32;
  border-radius: 8px;
}

.footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  display: flex;
  flex-direction: column;
  padding: 10px 0;
  border-top: 1px solid #e0e0e0;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
  z-index: 100;
  text-align: center;
  padding: 10px 20px;
}

.header {
  background: var(--primary-color);
  color: white;
  padding: 15px 0;
  text-align: center;
  box-shadow: var(--shadow-medium);
}

.container {
  max-width: 100%;
  padding: 0 15px;
  margin: 0 auto;
}

.tools-package {
  margin: 20px 0;
  position: relative;
  animation: fadeIn 0.5s ease forwards;
}

.package-header {
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 12px 14px;
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

.package-title {
  font-size: 15px;
  display: flex;
  align-items: center;
}

.package-title i {
  margin-right: 8px;
  font-size: 16px;
}

.tool-section {
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px dashed #e0e0e0;
  position: relative;
}

.tool-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.tool-section h4 {
  color: var(--primary-color);
  font-size: 14px;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
}

.tool-section h4 i {
  margin-right: 8px;
  font-size: 14px;
  width: 20px;
  text-align: center;
}

.tool-section p {
  font-size: 14px;
  color: var(--text-medium);
  padding-left: 28px;
  line-height: 1.4;
  margin-bottom: 8px;
}

.tool-section p:last-child {
  margin-bottom: 0;
}

.package-content {
  padding: 14px;
  background: white;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}

.header-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.main-title {
  font-size: 24px;
  font-weight: 700;
  margin: 0;
  letter-spacing: 1.5px;
}

.sub-title {
  font-size: 14px;
  font-weight: 400;
  margin-top: 5px;
  opacity: 0.9;
}

.service-header {
  background: white;
  border-radius: 16px;
  padding: 20px;
  margin: 20px 0;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.service-title {
  font-size: 22px;
  color: var(--primary-color);
  margin-bottom: 10px;
  font-weight: 700;
}

.service-description {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.5;
}

.service-overview,
.service-content,
.service-benefits {
  background: white;
  border-radius: 16px;
  padding: 20px;
  margin: 20px 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.section-title {
  font-size: 18px;
  color: var(--primary-color);
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  font-weight: 600;
}

.section-title i {
  margin-right: 10px;
  font-size: 20px;
}

.overview-text {
  font-size: 14px;
  color: var(--text-medium);
  line-height: 1.6;
  text-align: justify;
}

.content-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.content-item {
  background: #f8fef8;
  border-radius: 12px;
  padding: 20px;
  border-left: 4px solid var(--primary-color);
  transition: all 0.3s ease;
}

.content-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(46, 125, 50, 0.15);
}

.content-header {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}

.content-header i {
  color: var(--primary-color);
  font-size: 20px;
  margin-right: 12px;
  width: 28px;
  text-align: center;
}

.content-header h4 {
  color: var(--primary-color);
  font-size: 18px;
  margin: 0;
  font-weight: 600;
}

.content-description {
  color: var(--text-medium);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 15px;
}

.content-features {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.feature-item {
  display: flex;
  align-items: center;
  font-size: 13px;
  color: var(--text-medium);
}

.feature-item i {
  color: var(--primary-color);
  font-size: 12px;
  margin-right: 8px;
  width: 16px;
  text-align: center;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
}

.benefit-item {
  background: #f0f9eb;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  transition: all 0.3s ease;
}

.benefit-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(46, 125, 50, 0.15);
}

.benefit-item i {
  color: var(--primary-color);
  font-size: 28px;
  margin-bottom: 12px;
  display: block;
}

.benefit-item h4 {
  color: var(--primary-color);
  font-size: 16px;
  margin-bottom: 8px;
  font-weight: 600;
}

.benefit-item p {
  color: var(--text-medium);
  font-size: 13px;
  line-height: 1.4;
}

.service-info {
  margin: 25px 0;
  padding: 0 30px;
}

.price-card {
  background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.price-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.price-amount {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-color);
}

.price-divider {
  font-size: 16px;
  font-weight: 600;
  color: var(--primary-color);
  margin: 0 6px;
}

.price-note {
  font-size: 16px;
  color: var(--text-medium);
}

.action-buttons {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.contact-btn,
.back-btn {
  flex: 1;
  height: 50px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
}

.contact-btn {
  background-color: var(--primary-color);
}

.contact-btn i {
  margin-right: 5px;
}

/* 手机端优化 */
@media (max-width: 768px) {

  .service-header,
  .service-overview,
  .service-content,
  .service-benefits {
    padding: 15px;
    margin: 15px 0;
  }

  .service-title {
    font-size: 20px;
  }

  .section-title {
    font-size: 16px;
  }

  .benefits-grid {
    grid-template-columns: 1fr;
  }

  .content-header {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  .content-header i {
    margin-bottom: 5px;
  }

  .price-content {
    flex-direction: column;
    gap: 10px;
  }

  .action-buttons {
    flex-direction: column;
  }
}
</style>